﻿namespace Ross.BSCSystem.Controllers
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Net.Http;
    using System.Web.Http;
    using System.Web.Http.Controllers;

    public class BaseApiController : ApiController
    {
        /// <summary>
        /// 数据库连接字符串.
        /// </summary>
        public static string dbContextStr = "TranDbContext";

        /// <summary>
        /// 加密密钥.
        /// </summary>
        public static string encryptKey { get; set; } = "8679";
        public string uploadImgPath = System.Configuration.ConfigurationManager.AppSettings["UploadImagePath"];
        public string uploadFilePath = System.Configuration.ConfigurationManager.AppSettings["UploadFilePath"];
        
        /// <summary>
        /// 预算接口地址，在Web.Config中配置.
        /// </summary>
        public string BudgetServer = System.Configuration.ConfigurationManager.AppSettings["BudgetServer"];
    }
}
